package com.wutao.panzh.admin.controller;

import com.wutao.panzh.coust.WebConst;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class PassportController {

    @RequestMapping("/index")
    public String index(@RequestParam(value = "returnURL",required = false,defaultValue = WebConst.PANZH_ADMIN_CONTENT_PRIFIX+"index") String returnURL,
                        Model model){
        if (returnURL == null){
            returnURL = "http://localhost:9003/index";
        }
        model.addAttribute("returnURL",returnURL);
        return "index";
    }
}
